package entity;

import java.io.Serializable;
import java.util.Date;

public class Examresult implements Serializable {
    private int id;
    private Date exam_date;
    private Double score;
    private int st_id;
    private int sb_id;
    private Subject subject;
    private Student student;

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public Subject getSubject() {
        return subject;
    }

    public void setSubject(Subject subject) {
        this.subject = subject;
    }

    public Examresult() {
    }

    public Examresult(Date exam_date, Double score, int st_id, int sb_id) {
        this.exam_date = exam_date;
        this.score = score;
        this.st_id = st_id;
        this.sb_id = sb_id;
    }

    public Examresult(int id, Date exam_date, Double score, int st_id, int sb_id) {
        this.id = id;
        this.exam_date = exam_date;
        this.score = score;
        this.st_id = st_id;
        this.sb_id = sb_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getExam_date() {
        return exam_date;
    }

    public void setExam_date(Date exam_date) {
        this.exam_date = exam_date;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public int getSt_id() {
        return st_id;
    }

    public void setSt_id(int st_id) {
        this.st_id = st_id;
    }

    public int getSb_id() {
        return sb_id;
    }

    public void setSb_id(int sb_id) {
        this.sb_id = sb_id;
    }

    @Override
    public String toString() {
        return "Examresult{" +
                "id=" + id +
                ", exam_date=" + exam_date +
                ", score=" + score +
                ", st_id=" + st_id +
                ", sb_id=" + sb_id +
                '}';
    }
}
